Crowd-sourced cloud gaming using peer-to-peer streaming

ABSTRACT

A method includes: executing, by a cloud gaming machine, a session of a cloud video game, the session configured to generate gameplay video; streaming the gameplay video from the cloud gaming machine over a network to a primary user device; wherein the primary user device is configured to stream the gameplay video over a peer-to-peer network to one or more secondary user devices; wherein the primary user device is configured to process primary inputs, that are generated from interactive gameplay associated with the primary user device, and secondary inputs, that are generated from interactive gameplay associated with the one or more secondary user devices, to generate aggregated inputs; receiving, over the network by the cloud gaming machine, the aggregated inputs from the primary user device; wherein executing the session of the cloud video game includes applying the aggregated inputs to update a game state of the cloud video game.

FIELD OF THE DISCLOSURE

The present disclosure relates to systems and methods for crowd-sourcedcloud gaming, and more specifically to establishment of peer-to-peervideo streaming to enable decentralized gaming mediated through aprimary client device of a cloud video game.

BACKGROUND Description of the Related Art

A current area of rapidly growing technology is the field of cloudgaming. Users are able to access a number of games on a cloud gamingsite over a network, such as the Internet, and begin interaction/playingthe game. In order to select a game for game play, a user accesseshis/her account on the cloud gaming site, and initiates one of aplurality of games that are available to the user account for game play.The video generated from the cloud video game is transported to a clientdevice. One example of a cloud gaming system is the Playstation® Nowcloud gaming service.

It is within this context that embodiments of the disclosure arise.

SUMMARY OF THE DISCLOSURE

Implementations of the present disclosure provide methods and systemsthat are used to provide crowd-sourced cloud gaming using peer-to-peerstreaming.

In accordance with implementations of the disclosure, WebRTC, astreaming technology which can be built into a browser, can be used toallow peering of a video stream (including video image data and audiodata). The host can broadcast video to another user, and that user canshare the video to another user, etc. There are a number of ways thatWebRTC can enable distribution of video efficiently. In accordance withimplementations of the disclosure, such streaming can be applied tovideo game stream that is received through a browser. There can be aplurality of devices connected to the initial streamer of the video gamethat is connected to the cloud game machine from which the video isstreamed. Their video stream is thus cloned to other users, so thosespectators can view and hear the initial user's game stream.

One advantage of WebRTC, is that it is very graceful in its videodegradation. With some streaming services, if one is not locatedproximate to one of their servers, then connection and video quality canbe degraded because of latency. But with a WebRTC P2P network, the videosharing dynamically downsamples, and gives broader reach of networkbecause a given user device can connect to another device that is nearerto a data center, and the P2P connections are direct and avoid multiplehops to the extent possible.

Further, it is possible to provide a socket back up to the initial user,so that input from a spectator can be received and used to control (atleast partially) the gameplay. In some implementations, the users' inputis collectively tallied and applied to the video game. Spectators canissue input commands through their respective controllers, and thoseinput commands can be aggregated either on the host user's machine orupstream on the game machine. All the input commands are being fedthrough the main user's machine back up to the game machine in thecloud. By doing this, it is possible to have a massive multi-playeronline gaming experience, without placing additional resource burdens onthe cloud gaming provider. Further, it is possible to provide real-timespectating and input control from the various users. Though there can bemany users, the game machine can treat them as a single player, as theircollective input is sent up through the appropriate channel. Forexample, in some implementations, all users may be engaged incontrolling the same character as the primary main user. From the cloudgaming server standpoint, it is seamless, because the collective inputappears as a single client, and there are no changes to the session.Thus, the crowd-sourced gameplay functionality can be transparent to thedata center hosting system.

Prior attempts at crowd-sourced gaming have been implemented on slowgameplay video games (e.g. turn-based games), such as by having userscomment on what to do next, and then tallying up votes, and then issuingthe most popular command. However, such a setup does not enablecrowd-sourced gameplay of games that require real-time control to beeffectively played. In contrast to such prior attempts at crowd-sourcedgaming, implementations in accordance with the present disclosure enablereal-time crowd-sourced gameplay control, without requiring additionalcloud server resources.

It will be appreciated that implementations of the present disclosureenable a collaborative gaming experience, such that others may join agame session, takeover for a minute, help out, etc.

Broadly speaking, some implementations of the present disclosure aredrawn to a gaming client inside modern web browsers. Such a browserclient can be built using WebRTC technology, which is a well-supportedtechnology that functions similarly over all the major browsers. WebRTCdiffers from TCP transport in that error checking or packet guaranteesare not performed. Similar to a UDP transport, WebRTC is fast bysending/receiving packets with little/no overhead.

Implementations of the present disclosure can use WebRTC to create apeer-to-peer connection which is a direct connection between twoclients. The peer-to-peer connection allows the connection to avoidmultiple hops and impact latency. Connection initiation can be performedusing Session Description Protocol (SDP). SDP is used to create acommunication contract between two devices, and supports several optionsfor the control of buffering, key frame definitions, fallback ports,protocols, etc.

In some implementations, a method is provided, including: executing, bya cloud gaming machine, a session of a cloud video game, the sessionconfigured to generate gameplay video; streaming the gameplay video fromthe cloud gaming machine over a network to a primary user device, theprimary user device configured to render the gameplay video to a primarydisplay; wherein the primary user device is configured to stream thegameplay video over a peer-to-peer network to one or more secondary userdevices, each of said secondary user devices being configured to renderthe gameplay video, respectively, to one or more secondary displays;wherein the primary user device is configured to process primary inputs,that are generated from interactive gameplay associated with the primaryuser device, and secondary inputs, that are generated from interactivegameplay associated with the one or more secondary user devices, togenerate aggregated inputs; receiving, over the network by the cloudgaming machine, the aggregated inputs from the primary user device;wherein executing the session of the cloud video game includes applyingthe aggregated inputs to update a game state of the cloud video gamethat is processed to generate the gameplay video.

In some implementations, the method enables substantially real-timeinteractive gameplay of the session of the cloud video gamesimultaneously through the primary user device and the one or moresecondary user devices.

In some implementations, the cloud gaming machine does not communicatewith the one or more secondary user devices.

In some implementations, the session of the cloud video game is definedas a single player session of the cloud video game.

In some implementations, the primary user device is configured toinstantiate a socket through which the secondary inputs are receivedfrom the one or more secondary user device.

In some implementations, at least one of the secondary user devices isconfigured to execute a browser application that renders the gameplayvideo that is received over the peer-to-peer network.

In some implementations, streaming the gameplay video over thepeer-to-peer network to the one or more secondary user devices includesaccessing a WebRTC application programming interface (API) to enableinstantiation of the peer-to-peer network.

In some implementations, processing the primary inputs and the secondaryinputs to generate the aggregated inputs includes combining the primaryinputs and the secondary inputs into a single input stream.

In some implementations, processing the primary inputs and the secondaryinputs to generate the aggregated inputs includes determining popularinputs based on the primary inputs and the secondary inputs.

In some implementations, processing the primary inputs and the secondaryinputs to generate the aggregated inputs includes determining, for agiven input type and a current time interval, a single input commandbased on ones of the primary inputs and the secondary inputs that are ofthe given input type and which occur during the current time interval.

In some implementations, a non-transitory computer readable mediumhaving program instructions embodied thereon is provided, the programinstructions configured, when executed by at least one server computer,to cause said at least one server computer to perform a method includingthe following method operations: executing, by a cloud gaming machine, asession of a cloud video game, the session configured to generategameplay video; streaming the gameplay video from the cloud gamingmachine over a network to a primary user device, the primary user deviceconfigured to render the gameplay video to a primary display; whereinthe primary user device is configured to stream the gameplay video overa peer-to-peer network to one or more secondary user devices, each ofsaid secondary user devices being configured to render the gameplayvideo, respectively, to one or more secondary displays; wherein theprimary user device is configured to process primary inputs, that aregenerated from interactive gameplay associated with the primary userdevice, and secondary inputs, that are generated from interactivegameplay associated with the one or more secondary user devices, togenerate aggregated inputs; receiving, over the network by the cloudgaming machine, the aggregated inputs from the primary user device;wherein executing the session of the cloud video game includes applyingthe aggregated inputs to update a game state of the cloud video gamethat is processed to generate the gameplay video.

In some implementations, a system is provided, including: a cloud gamingmachine configured to execute a session of a cloud video game, thesession configured to generate gameplay video; the cloud gaming machineconfigured to stream the gameplay video from the cloud gaming machineover a network to a primary user device, the primary user deviceconfigured to render the gameplay video to a primary display; whereinthe primary user device is configured to stream the gameplay video overa peer-to-peer network to one or more secondary user devices, each ofsaid secondary user devices being configured to render the gameplayvideo, respectively, to one or more secondary displays; wherein theprimary user device is configured to process primary inputs, that aregenerated from interactive gameplay associated with the primary userdevice, and secondary inputs, that are generated from interactivegameplay associated with the one or more secondary user devices, togenerate aggregated inputs; receiving, over the network by the cloudgaming machine, the aggregated inputs from the primary user device;wherein executing the session of the cloud video game includes applyingthe aggregated inputs to update a game state of the cloud video gamethat is processed to generate the gameplay video.

Other aspects and advantages of the disclosure will become apparent fromthe following detailed description, taken in conjunction with theaccompanying drawings, illustrating by way of example the principles ofthe disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

The disclosure, together with further advantages thereof, may best beunderstood by reference to the following description taken inconjunction with the accompanying drawings.

FIG. 1A illustrates a simplified block diagram of an exemplary systemthat is used to preload game content onto a cloud game server, inaccordance with an embodiment of the present disclosure.

FIG. 1B is a flow diagram conceptually illustrating various operationswhich are performed for streaming a cloud video game to a client device,in accordance with implementations of the disclosure.

FIG. 2 conceptually illustrates a system for providing a cloud videogame over a network to a plurality of users, in accordance withimplementations of the disclosure.

FIG. 3 conceptually illustrates componentry of the primary user device220 and secondary user device 228, in accordance with implementations ofthe disclosure.

FIG. 4A conceptually illustrates a system wherein aggregation of inputis handled at the primary client device, in accordance withimplementations of the disclosure.

FIG. 4B conceptually illustrates a system wherein aggregation of inputis handled at the game machine, in accordance with implementations ofthe disclosure.

FIG. 4C conceptually illustrates a system wherein aggregation of inputis handled at an aggregation server, in accordance with implementationsof the disclosure.

FIGS. 5A, 5B, and 5C conceptually illustrate the passing of control ofthe video game session between users, in accordance with implementationsof the disclosure.

FIG. 6A illustrates an interface 600 for accessing the gameplay of anonline user of a cloud gaming system, in accordance with implementationsof the disclosure.

FIG. 6B illustrates an interface 610 for providing access to spectateand/or participate in the gameplay of a session of a user in a cloudgaming system, in accordance with implementations of the disclosure.

FIG. 7 illustrates an exemplary Information Service Providerarchitecture for delivering informational content and services to userswho are geographically dispersed and connected via a network, inaccordance with implementations of the disclosure.

FIG. 8 illustrates exemplary components of a computing device used forcontrolling content presented to a user, in accordance withimplementations of the disclosure.

FIG. 9 is a block diagram of a Game System 900, in accordance withimplementations of the disclosure.

DETAILED DESCRIPTION

In the following description, numerous specific details are set forth inorder to provide a thorough understanding of the present disclosure. Itwill be apparent, however, to one skilled in the art that the presentdisclosure may be practiced without some or all of these specificdetails. In other instances, well known process steps have not beendescribed in detail in order not to obscure the present disclosure.

One example of a cloud gaming system is the Playstation® Now cloudgaming service. At present, in such a system, the client device can be agame console, such as a Playstation® 4 game console or another devicesuch as a personal computer.

In an existing cloud gaming system (e.g. Playstation® Now), a cloud gamemachine (e.g. a cloud console device) exists in a data center, and aserver sets up a connection between a primary client device (e.g.Playstation® 4 game console or a personal computer) and the cloud gamemachine. An optimal data center can be selected from which to stream thecloud video game, e.g. one that is expected to provide suitableperformance in terms of latency, streaming bit rate, available cloudcomputing resources, server load balancing, etc. Then the streaming isdirectly between the cloud game machine and the primary client device,ideally providing fast connections allowing for sufficient performanceto provide a satisfactory cloud gaming experience to the primary user.

However, when other remote secondary users wish to spectate the gamingsession of the primary user, then this presents a challenge of how toprovide the primary client device's video stream to the other remoteusers. One option is to stream from the same data center, and possiblyeven the same game machine, to the secondary client devices that arerespectively associated with the secondary users. However, doing soplaces additional burdens on the data center's resources and the datacenter's network connection, reducing resource availability andconnection bandwidth for other devices and sessions. Additionally, whilethe data center might be optimized for the primary client device, itmight not provide good performance for one or more of the secondaryclient devices. For example, a secondary client device could be locatedsignificantly further away from the data center than the primary clientdevice, and the secondary client device may suffer from poor connectionspeeds and diminished streaming performance.

In view of this, implementations in accordance with the presentdisclosure provide a system in which a peer-to-peer network isestablished between the primary client device and the secondary clientdevices, and streaming of the gameplay video (of the primary clientdevice's cloud gaming session) occurs via this peer-to-peer network. Inthis way, the secondary client devices do not need to establishstreaming connections with the cloud gaming service's servers, and sothe cloud gaming service does not need to incur high server costs thatwould be associated with handling such streaming connections.

In some implementations, the peer-to-peer streaming is implemented usingWebRTC technologies. In some implementations, the primary client deviceimplements a streaming server, and can be configured to publish in UDPfor optimal streaming performance. Conventionally, browsers use TCP/IP,which is a serial process such that if a packet is lost, then theconnection is broken. However, UDP allows packets to be dropped withoutbreaking connection, which is advantageous for streaming video.

Additionally, in some implementations, a socket or data channel isprovided through which user input generated by the secondary clientdevices is transmitted to the primary client device. Such user inputalong with user input of the primary client device can be aggregated atthe primary client device and transmitted from the primary client deviceto the cloud gaming service. In this way, the secondary users can notonly spectate the primary user's session of the cloud video game, butalso participate in playing. The cloud gaming machine does not need tocommunicate with the secondary client devices, and yet the secondaryusers are able to participate in playing the primary user's session ofthe cloud video game.

Thus, implementations in accordance with the present disclosure providea primary client that leverages peer-to-peer technology (e.g. usingWebRTC protocols) to enable multiple secondary clients to view theprimary client's gameplay video, without placing additional strain onthe system resources of the cloud gaming service. And furthermore,secondary users are able to participate in the gaming session of theprimary user, through input that is aggregated at the primary clientdevice and then transmitted to the cloud video game.

Thus, implementations in accordance with the present disclosure providesolutions to the problem of enabling satisfactory streaming gameplay ofa video game by multiple users, without placing additional resourceburdens on a cloud gaming service provider.

Broadly speaking, to enable cloud gaming, several operations areperformed by one or more servers within a data center associated with acloud gaming site when a user request is received for a game title. Whenthe cloud gaming site receives a user request, a data center hosting thegame associated with the selected game title is identified and therequest is sent to the identified data center for instantiating the gamefor the selected game title. In response to the request, a server at thedata center identifies the game code, loads the identified game code andinitializes the files related to the game code in preparation forpresenting the game content to the user. Game data associated with agame can include generic game data and user specific game data.Therefore, initializing the files can include identifying, loading, andinitializing both generic game data and user specific game data.Initializing generic game data may include initializing a graphicsengine, installing graphics data, initializing sound files, installingart work, etc. Initializing user specific data may include locating,transferring, and installing user data, user history, game history, etc.

While the generic game data is being loaded and initialized, a “splash”screen may be provided for rendering at the client device. A splashscreen may be designed to provide representative images of the game thatis being loaded, to allow a user a preview of the type of game that isbeing loaded. Once the generic game data is loaded, certain initialcontent may be rendered and a selection/navigation screen may bepresented for user selection and customization. User selection inputprovided at the selection/navigation screen may include game levelselection, game icon(s) selection, game mode selection, game winnings,other user-related data that may require uploading of additional gamecontent. In some embodiments, game content is made available bystreaming the game content from the game cloud system to a user'scomputing device for viewing and interacting. In some implementations,after loading user specific data, the game content is available for gameplay.

FIG. 1A illustrates an exemplary system used to load game files for agame available through a cloud gaming site. The system includes aplurality of client devices 100 that are communicatively connected tothe cloud gaming site 104 over a network 102, such as the Internet. Whena request to access the cloud gaming site 104 is received from a clientdevice 100, the cloud gaming site 104 accesses user account information106 stored in a user data store 108 to identify a user associated with aclient device through which the request is initiated. In someembodiments, the cloud gaming site may also validate the identified userin order to determine all the games the user is authorized to view/play.Following user account identification/validation, the cloud gaming siteaccesses a game titles data store 110 to identify the game titles thatare available at the game cloud site for the user account initiating therequest. The game titles data store 110, in turn, interacts with a gamesdatabase 112 to obtain the game titles for all the games that areavailable for the cloud gaming site. As new games are introduced, thegames database 112 will be updated with the game code and the gametitles data store 110 will be provided with game titles information forthe newly introduced games. The client device from where the request isinitiated may or may not be registered with the cloud gaming site, whenthe request was initiated. If the user of the client device initiatingthe request is not a registered user, then the cloud gaming site mayidentify the user as a new user and select the game titles (for e.g., adefault set of game titles) that are appropriate for a new user. Theidentified game titles are returned to the client device for presentingon a display screen 100-a, as shown in FIG. 1A.

User interaction at one of the game titles rendered on the client deviceis detected and a signal is sent to the cloud gaming site. The signalincludes the game title information where the user interaction wasdetected and the user interaction registered at the game title. Inresponse to the signal received from the client device, the cloud gamingsite proactively determines a data center where the game is being hostedand sends a signal to the identified data center to load the gameassociated with the game title for which the user interaction isdetected. In some embodiments, more than one data center may be hostingthe game. In such embodiments, the cloud gaming site may determine thegeo location of the client device initiating the request and identify adata center that is geographically close to the client device and signalthe data center to pre-load the game. The geo location of the user maybe determined using a Global Position System (GPS) mechanism within theclient device, the client's IP address, the client's ping information,to name a few. Of course, the aforementioned ways to detect the geolocation of the user may be exemplary and other types of mechanisms ortools may be used to determine the geo location of the user.Identification of a data center that is close to the client device canminimize latency during user interaction with the game. In someembodiments, the identified data center may not have the requiredbandwidth/capacity to host the game or may be overused. In theseembodiments, the cloud gaming site may identify a second data centerthat is geographically close to the client device. The loading of thegame includes loading game code and executing an instance of the game.

In response to receiving the signal from the cloud gaming site, theidentified data center may select a server at the data center toinstantiate the game on the server. The server is selected based on thehardware/software capabilities available and the game requirements. Theserver may include a plurality of game consoles and the server maydetermine which one of the plurality of game consoles to use to load thegame. The game console may be similar to an independent game console, ormay be a rack-mounted server or a blade server. The blade server, inturn, may include a plurality of server blades with each blade havingrequired circuitry for instantiating a single dedicated application,such as the game. Of course, the game console described above isexemplary and should not be considered restrictive. Other types of gameconsoles, including game stations, etc., and other forms of blade servermay also be engaged for hosting the identified game.

Once the game console is identified, the generic game-related code forthe game is loaded onto the game console and a signal is returned to theclient device via the cloud gaming site over the network identifying thegame console on which the game is instantiated. The loaded game is thusmade available to the user.

FIG. 1B is a flow diagram conceptually illustrating various operationswhich are performed for streaming a cloud video game to a client device,in accordance with implementations of the disclosure. The gaming system118 executes a video game and generates raw (uncompressed) video 120 andaudio 122. The video 120 and audio 122 are captured and encoded forstreaming purposes, as indicated at reference 124 in the illustrateddiagram. The encoding can provide for compression of the video and audiostreams to reduce bandwidth usage and optimize the gaming experience.Examples of encoding formats include H.265/MPEG-H, H.264/MPEG-4,H.263/MPEG-4, H.262/MPEG-2, WMV, VP6/7/8/9, etc.

The encoded audio 126 and encoded video 128 are further packetized intonetwork packets, as indicated at reference numeral 132, for purposes oftransmission over a network such as the Internet. The network packetencoding process can also employ a data encryption process, therebyproviding enhanced data security. In the illustrated implementation,audio packets 134 and video packets 136 are generated for transport overthe network, as indicated at reference 140.

The gaming system 118 additionally generates haptic feedback data 130,which is also packetized into network packets for network transmission.In the illustrated implementation, haptic feedback packets 138 aregenerated for transport over the network, as further indicated atreference 140.

The foregoing operations of generating the raw video and audio and thehaptic feedback data, encoding the video and audio, and packetizing theencoded audio/video and haptic feedback data for transport are performedon one or more servers which collectively define a cloud gamingservice/system. As indicated at reference 140, the audio, video, andhaptic feedback packets are transported over a network, such as and/orincluding the Internet. As indicated at reference 142, the audio packets134, video packets 136, and haptic feedback packets 138, aredecoded/reassembled by the client device to define encoded audio 146,encoded video 148, and haptic feedback data 150 at the client device. Ifthe data has been encrypted, then the network packets are alsodecrypted. The encoded audio 146 and encoded video 148 are then decodedby the client device, as indicated at reference 144, to generateclient-side raw audio and video data for rendering on a display device152. The haptic feedback data 150 can be processed/communicated toproduce a haptic feedback effect at a controller device 156 or otherinterface device through which haptic effects can be rendered. Oneexample of a haptic effect is a vibration or rumble of the controllerdevice 156.

It will be appreciated that a video game is responsive to user inputs,and thus, a similar procedural flow to that described above fortransmission and processing of user input, but in the reverse directionfrom client device to server, can be performed. As shown, a useroperating controller device 156 may generate input data 158. This inputdata 158 is packetized at the client device for transport over thenetwork to the cloud gaming system. The input data packets 160 areunpacked and reassembled by the cloud gaming server to define input data162 on the server-side. The input data 162 is fed to the gaming system118, which processes the input data 162 to update the game state of thevideo game.

During transport (ref. 140) of the audio packets 134, video packets 136,and haptic feedback packets 138, the transmission of data over thenetwork can be monitored to ensure the cloud game stream quality ofservice. For example, network conditions can be monitored as indicatedby reference 164, including both upstream and downstream networkbandwidth, and the game streaming can be adjusted in response to changesin available bandwidth. That is, the encoding and decoding of networkpackets can be controlled based on present network conditions, asindicated by reference 166.

FIG. 2 conceptually illustrates a system for providing a cloud videogame over a network to a plurality of users, in accordance withimplementations of the disclosure. In the illustrated implementation, acloud video game is executed by a game machine 202, defining a videogame session 204. The game machine 202 can be situated in a data center200, along with other game machines capable of executing sessions ofcloud video games for various client devices. It will be appreciatedthat in various implementations, the game machine 202 can be a gameconsole, the hardware equivalent of a game console (e.g. bladed gameconsole hardware), a server computer/blade, a virtual machine executingon hardware resources, or any other configuration of hardware capable ofproviding the appropriate execution environment for the cloud videogame.

In the illustrated implementation, the video game session 204 is definedfor a primary user 226. Hence, the video game session 204 is streamedover a network 218, which may include the Internet, to a primary userdevice 220 that is associated to the primary user 226. Morespecifically, the video game session 204 instantiates and maintains agame state that is updated based on received input commands. The gamemachine 202 renders video frames and audio based on the game state,defining a video stream 221 (including both moving image data and audiodata) that is transmitted over the network 218 to the primary userdevice 220. As used in the present disclosure, and unless noted orotherwise apparent from the disclosure, video shall refer to both movingimage data and corresponding audio data. The primary user device 220renders the video stream to a display 222 for viewing by the primaryuser 226. The primary user 226 may interact with the video game throughoperation of a controller device 224, which can be any device throughwhich the primary user 226 can provide interactive input to the videogame, such as a gaming controller, peripheral, keyboard, mouse,touchpad, trackball, motion controller, video camera, depth camera,microphone, etc.

It will be appreciated that the primary user device 220 can be any ofvarious types of devices, such as a game console, personal computer,laptop, portable gaming device, tablet, cellular phone, or any othernetworked device capable of receiving and rendering the video stream 221from the game machine 202 to the display 222. The display 222 can be anytype of display capable of displaying video from a video game session,including by way of example without limitation, a television, monitor,projector, touchscreen, head-mounted display (HMD), etc. In someimplementations, the primary user device 220 and the display 222 can beintegrated in the same form factor (e.g. laptop, tablet, cellular phone,etc.). It will be appreciated that in some implementations, thecontroller device 224 can also be integrated in the same form factor. Itwill be appreciated that similar concepts as described with reference tothe devices associated with the primary user also apply to the devicesassociated with secondary users as described further below.

In the above-described implementation, the game machine 202 streams thevideo stream 221 to the primary user device 220. In someimplementations, a streaming server 206 is invoked to handle streamingof the video stream 221 to the primary user device 220. The streamingserver 206 may process raw video output by the game machine 202, such asby encoding it in a compressed format, transcoding it from oneformat/codec to another, adjusting its bit rate based on variousconsiderations (e.g. network bandwidth, primary user device hardwarecapabilities, application/browser type of primary user device, etc.) togenerate the video stream 221. In some implementations, the streamingserver 206 is situated in the data center 200, whereas in otherimplementations, the streaming server 206 can be situated in otherlocations such as other data centers. In some implementations, thestreaming server 206 is executed by the game machine 202.

In accordance with implementations of the disclosure, methods areprovided to enable a plurality of secondary users to spectate andparticipate in the session of the primary user 226. In the illustratedimplementation, such secondary users 234, 242, 250, and 258, are shown,associated to secondary user devices 228, 236, 244, and 252,respectively. The secondary user devices 228, 236, 244, and 252 areoperatively connected to displays 230, 238, 246, and 254, respectively,as well as controller devices 232, 240, 248, and 256, respectively.

In accordance with implementations of the disclosure, the video renderedby the primary user device 220 is shared to the secondary user devicesthrough peer-to-peer (P2P) sharing. That is, peer-to-peer connectionsamongst the primary user device and the secondary user devices areestablished (over the network 218), forming a P2P network through whichthe video is shared to all of the secondary user devices. It will beappreciated that the P2P sharing is substantially real-time, withminimal latency so that the secondary users are able to concurrentlyview the same video content of the video game session 204 that is beingviewed by the primary user 226 with minimal lag. In this manner, thesecondary users are able to spectate the gameplay of the primary user insubstantially real-time.

In some implementations the P2P sharing is accomplished using WebRTC.For example, in some implementations, a peer-to-peer connection isestablished using the RTCPeerConnection API, and furthermore inaccordance with Session Description Protocol (SDP). Broadly speaking,this entails signaling to exchange media configuration information byexchanging an offer and an answer using SDP.

Furthermore, in accordance with implementations of the disclosure,functionality is provided that enables the secondary users toparticipate in the gameplay of the primary user's video game session204. For example, in some implementations, interactive input supplied bythe secondary users can be transmitted back to the primary user device220, where it is aggregated or processed in conjunction with the primaryuser's input. The aggregated input of the primary and secondary users isthen transmitted as an input stream 223 to the game machine 202. In theillustrated implementation, the input from the secondary users can begenerated by the secondary user's operation of their respectivecontroller devices 232, 240, 248, and 256. Thus, for example,considering the viewing and gameplay experience of the secondary user234, as the secondary user 234 views the shared gameplay video of theprimary user 226 through the secondary user's display 230, the secondaryuser 234 may interact with the video by operating controller device 232.This generates inputs that are transmitted by the secondary user device228 to the primary user device 220 (e.g. through a socket or otherconnection protocol configured to receive the input at the primary userdevice 220). It will be appreciated that a similar experience isprovided to the other secondary users using their respective secondaryuser devices, displays, and controller devices.

In this manner, the secondary user devices provide secondary inputs tothe primary user device 220, and the primary user device 220 may processthese along with the primary inputs supplied by the primary user's 226interactivity (through operation of the controller device 224), togenerate the aggregated input stream 223. It will be appreciated that invarious implementations, the combined inputs of the primary andsecondary users can be processed in different ways. Regardless, in thismanner, the secondary users are able to participate in the gameplay ofthe video game session 204 that is defined for the primary user 226.Further, from the standpoint of the game machine 202, it is onlyproviding a session to a single client—that is the primary user device220, and no additional cloud resources are required to enable thesecondary users' participation. The game machine 202 (or streamingserver 206, when invoked) does not need to communicate with thesecondary user devices, yet the secondary users are able to view thegameplay and even participate in the gameplay.

In some implementations, the cloud video game and thespectating/participation functionality are provided by a cloud gamingservice 208. Broadly speaking, the cloud gaming service 208 providesaccess to cloud video games for gameplay as well as access to spectatethe gameplay of other users. In the illustrated implementation, thecloud gaming service 208 includes a web server 200 that receives andresponds to requests over the network 218 from user devices operated byusers of the cloud gaming service 208. In some implementations, the webserver 210 receives and responds to requests to access the cloud gamingservice 208, such as by facilitating authorization of login credentialsand providing access to an interface for the cloud gaming service, whichin some implementations can be in the form of one or more webpages whenthe requesting user device is accessing the cloud gaming service througha web browser. In providing such services, the web server 210 may accessa user data storage 216, which may include various user-related data,such as login credentials, user gaming history, social graphinformation, achievements/trophies, game ownership,preferences/settings, etc.

In accordance with the illustrated implementation, the web server 210may receive a request from the primary user device 220 to access a cloudvideo game, and in response to the request, the primary user device 220is assigned to the game machine 202 at the data center 200, and thevideo game session 204 is initiated on the game machine 202 for theprimary user 226.

Further, the web server 210 may receive requests from the secondary userdevices 228, 236, 244, and 252 to access live gaming sessions. In theillustrated implementation, the cloud gaming service 208 includes a livegame monitor 212 that is configured to obtain updates from in-progresscloud gaming sessions, and store the updates to a live game data storage214. For example, such updates may include data identifying active cloudgaming sessions, representative recent screenshots,information/statistics about such sessions (e.g. duration of activesession, user id associated with the session, number of players in amultiplayer session, game-related statistics, etc.), chat logs, etc. Inresponding to the aforementioned requests to access live gamingsessions, the web server 210 may access the live game data storage 214to obtain and provide data regarding live gaming sessions to therequesting secondary user devices.

The web server 210 may further receive requests from the secondary userdevices 228, 236, 244, and 252 to specifically spectate, and possiblyparticipate in, the video game session 204 of the primary user 226. Inresponse to such requests, the web server 210 may communicate therequest to the primary user device 220, to initiate P2P sharing of thegameplay video as previously described.

FIG. 3 conceptually illustrates componentry of the primary user device220 and secondary user device 228, in accordance with implementations ofthe disclosure. In the illustrated implementation, the primary userdevice 220 executes a cloud gaming application 302 that is configured toperform the functionality to enable the shared gameplay of the videogame session 204 as described herein. As noted above, the primary userdevice 220 can be any of various kinds of network enabled devices, suchas a game console or personal computer. Accordingly, in someimplementations the cloud gaming application 302 can be a dedicated orstandalone application or app that executes over the operating systemenvironment of the primary user device 220. Whereas in otherimplementations, the cloud gaming application 302 can be a webapplication and/or define various functional modules within the contextof a web browser application 300.

In the illustrated implementation, the cloud gaming application 302includes a video stream handler 304 that receives the video stream 221and renders it to the display 222 as rendered gameplay video for viewingby the primary user 226. In some implementations, a video stream server306 is executed at the primary user device 220 to facilitate the P2Psharing of the gameplay video. It will be appreciated that the videostream server 306 may access a P2P library 318 through a P2P API 316, toprovide the P2P sharing functionality of the primary user device 220.

In some implementations wherein the P2P sharing is performed usingWebRTC, then the video stream server 306 can be a WebRTC serverconfigured to share/distribute the gameplay video over a P2P connection324. In such implementations the P2P API 316 is a WebRTC API and the P2Plibrary 318 is a WebRTC library.

The secondary user device 228, like the primary user device 220, can beany of various types of networked devices. In the illustratedimplementation, the secondary user device 228 includes a cloud gamingapplication 324, that may be a standalone application/app or definedthrough a web browser 332. The cloud gaming application 324 includes avideo stream client 336 that is configured to receive the gameplay videothat is shared over the P2P connection 324. It will be appreciated thatas the gameplay video is shared through a P2P network, so the videostream client 336 of the secondary user device 228 may receive portionsof the gameplay video from other secondary user devices that are alsopart of the P2P network and that have received and are sharing portionsof the gameplay video through the P2P network. Furthermore, the videostream client 336 may also share portions of the gameplay video to othersecondary user devices in the P2P network. The video stream client 336may access a P2P library 342 through a P2P API 340, which may be aWebRTC library and WebRTC API in some implementations.

In some implementations, the cloud gaming application 302 is configuredto set up a socket 330 through which inputs from the various secondaryuser devices are received. The socket 330 can be defined through asocket library 322 accessed through a socket API 320. In someimplementations, the socket 330 is defined using the socket.IO libraryand API.

In the illustrated implementation, the cloud gaming application 334further includes a local input handler 338 that is configured to receiveand transmit secondary input generated from interactivity by thesecondary user 234 with the gameplay video that is rendered by the videostream client 336 of the secondary user device 228 to the display 230.For example, such secondary input can be generated through operation ofthe controller device 232 by the secondary user 234. The local inputhandler 338 transmits the input through the socket 330 to the primaryuser device 220.

A peer input handler 310 at the primary user device 220 is configured toreceive the incoming secondary input from the secondary user device 228(and from other secondary user devices). The cloud gaming application302 of the primary user device 220 further includes a local inputhandler 308 that is configured to receive primary input generated frominteractivity by the primary user 226 with the gameplay video of thevideo game session 204 that is rendered from the primary user device 220to the display 222. Such primary input can be generated throughoperation of the controller device 224.

In the illustrated implementation, the cloud gaming application 302 ofthe primary user device 220 further includes an input aggregator 312that is configured to aggregate and process the primary input (of theprimary user) and the secondary input (of the secondary users). Variousways of aggregating and processing the primary and secondary input arecontemplated as discussed in further detail below. The primary andsecondary inputs are processed to define the aggregated input stream 223that is communicated to the game machine 202, and applied to the videogame session 204 to drive the execution of the session and update thegame state of the video game. In this manner, the combination of inputfrom the primary user 226 and the secondary users is utilized to playthe cloud video game. It will be appreciated that this is accomplishedin the context of the video game session 204 being defined for theprimary user 226, but not necessarily for the secondary users. Yet thesecondary users are enabled to view the same gameplay video in real-timeand also interactively participate in affecting the gameplay and outcomeof the video game.

It will be appreciated that in various implementations the handling ofthe aggregation of input can be performed by various entities. FIG. 4Aconceptually illustrates a system wherein aggregation of input ishandled at the primary client device, in accordance with implementationsof the disclosure. In the illustrated implementation, the primary userdevice 220 receives gameplay video from the game machine 202 anddistributes the gameplay video through P2P sharing to the secondary userdevices 228. Secondary input from the secondary user devices 228 istransmitted back to the primary user device 220 (e.g. through a socketat the primary user device 220). Thus, in the illustratedimplementation, the aggregation of the secondary input and the primaryinput occurs at the primary user device 220. After the inputs areaggregated and processed by primary user device 220, the resultingcombined input is transmitted to the game machine 202.

FIG. 4B conceptually illustrates a system wherein aggregation of inputis handled at the game machine, in accordance with implementations ofthe disclosure. In the illustrated implementation, the primary userdevice 220 receives gameplay video from the game machine 202 anddistributes the gameplay video through P2P sharing to the secondary userdevices 228. Secondary input from the secondary user devices 228 istransmitted back to the game machine 202. Also, the primary input fromthe primary user device 220 is also transmitted to the game machine 202.Thus, in the illustrated implementation, the aggregation of thesecondary input and the primary input occurs at the game machine 202.

FIG. 4C conceptually illustrates a system wherein aggregation of inputis handled at an aggregation server, in accordance with implementationsof the disclosure. In the illustrated implementation, the primary userdevice 220 receives gameplay video from the game machine 202 anddistributes the gameplay video through P2P sharing to the secondary userdevices 228. Secondary input from the secondary user devices 228 istransmitted to an aggregation server 400. The primary input from theprimary user device 220 is also transmitted to the aggregation server400. Thus, in the illustrated implementation, the aggregation of thesecondary input and the primary input occurs at the aggregation server400. After the inputs are aggregated and processed by the aggregationserver 400, the resulting combined input is transmitted to the gamemachine 202.

It will be appreciated that in various implementations the primary andsecondary inputs can be combined in many different ways for applicationto the video game session. For example, in some implementations, theprimary and secondary inputs are aggregated together in accordance withtheir timing and provided directly to the video game session. That is,all of the inputs are provided to the video game session without furtherprocessing, so that each input provided by each user (both primary andsecondary) is provided to the video game session.

In some implementations, the primary and secondary inputs are aggregatedat periodic intervals and a single input (or subset of the inputs) isselected at each interval and transmitted to the video game session. Forexample, in some implementations the most popular input, or the inputthat occurs in the highest amount or frequency, is selected at eachinterval and transmitted to the video game session. In someimplementations, more than one input is selected, such as the mostpopular set of inputs. It will be appreciated that the particular lengthof the periodic interval can vary in various implementations, forexample ranging from on the order of milliseconds, to tenths of asecond, to seconds, by way of example without limitation.

In some implementations, there may be different classes or types ofinputs for the video game. Non-limiting examples include directionalinputs (e.g. up, down, forward, backward, right, left, etc.),movement-type inputs (e.g. run, jump, strafe, crouch, accelerate, brake,etc.), weapon control inputs (e.g. fire, reload, change weapon, etc.),virtual device control inputs, etc. In some implementations the mostpopular input or set of inputs is selected and applied at each interval.

In some implementations, a threshold for an input or type of input canbe applied. For example, for a given time interval, a given input may beselected, or may only be considered for selection (e.g. based onpopularity as described above), if it has been selected a minimum numberof times, or by a minimum fraction of the total number of users.

Additionally, in some implementations, the specific length of theperiodic interval can be different for different input types/classes.

In some implementations, the inputs can be weighted to give priority toone or more users. For example, in some implementations the input of theprimary user is weighted higher than the input of a secondary user. Inthis manner, the input of the primary user has greater influence on theinput that is applied to the video game, while the input of thesecondary users is still relevant. In some implementations, the specificweighting to be applied is configurable by the primary user, so that theprimary user can set the weighting of the users according to his/herpreference.

In some implementations, controls can be divided amongst differentgroups of users. In some implementations, such division of controls isconfigurable by the primary user through their primary user device. Forexample, one group of secondary users could be assigned to control aparticular gameplay function (e.g. movement of a character) whileanother group of secondary users is assigned to control another gameplayfunction (e.g. weapon/attack control, such as weapon firing andselection).

In some implementations predefined templates can be made available forselection by the primary user, the predefined templates defining how theprimary and secondary inputs are to be combined for purposes of playingthe video game. This can be useful in providing certain default optionsfor the primary user to choose from.

FIGS. 5A, 5B, and 5C conceptually illustrate the passing of control ofthe video game session between users, in accordance with implementationsof the disclosure. In the illustrated implementation, at FIG. 5A, thegameplay video of the video game is streamed from the game machine 202to the primary user device 220. The gameplay video is also P2P shared tothe secondary user devices 228, 236, and 500. As shown at FIG. 5A,though all the primary and secondary users are able to view the gameplayvideo in substantially real-time, only the primary user is controllingthe gameplay by supplying input to the video game session via theprimary user device 220. The secondary users 228, 236, and 500 arespectating the gameplay video of the primary user but not participatingin controlling the gameplay.

However, in accordance with implementations of the disclosure, theprimary user can pass control of the gameplay to one of the secondaryusers. In some implementations, the primary user can offer control to asecondary user, or in some implementations, one or more secondary userscan “call next” and/or request to assume control of the gameplay. Itwill be appreciated that in some implementations the passing of controlis contingent upon permission being given by the primary user 226associated with the primary user device 220. In some implementations,the passing of control can proceed according to a queue of the secondaryuser devices, such that secondary users requesting to assume control ofthe gameplay are placed in the queue in the order of their requests, andcontrol is passed to each in turn according to their ordering.

In the illustrated implementation shown at FIG. 5B, control of thegameplay has been passed to the secondary user device 228. Thus, inputsfrom the secondary user device 228 are transmitted to the primary userdevice 220, which then forwards the inputs to the game machine 202 to beapplied to the video game session to drive the execution of the gamestate. In this mode of gameplay, the secondary user 234 that providesinput through the secondary user device 228 (for example, operatingcontroller device 232) is controlling the gameplay, even though thesession is defined for the primary user 226 of primary user device 220.It will be appreciated that the primary user device 220, and thesecondary user devices 236 and 500 are spectating the gameplay but notactively controlling it.

In the illustrated implementation shown at FIG. 5C, control of thegameplay has been passed to the secondary user device 236. Thus, inputsfrom the secondary user device 236 are transmitted to the primary userdevice 220, which then forwards the inputs to the game machine 202 to beapplied to the video game session to drive the execution of the gamestate. In this mode of gameplay, the secondary user 242 that providesinput through the secondary user device 236 (for example, operatingcontroller device 240) is controlling the gameplay, even though thesession is defined for the primary user 226 of primary user device 220.It will be appreciated that the primary user device 220, and thesecondary user devices 228 and 500 are spectating the gameplay but notactively controlling it.

FIG. 6A illustrates an interface 600 for accessing the gameplay of anonline user of a cloud gaming system, in accordance with implementationsof the disclosure. In the illustrated implementation, the interface 600provides access to information relating to friends of the primary useron a social network. The social network can be a social network of thecloud gaming system, or another social network. As shown, variousoptions are provided, such as a “Search” feature to enable searching fora specific user, an “Online” feature to view friends that are currentlyonline, an “All” feature to view all of the primary user's friends, an“In Game Sessions” feature 602 to view friends that are currentlyengaged in active gaming sessions, a “Players Met” feature to view id'sof players that the user has encountered in another context (e.g. duringmultiplayer gameplay of a video game), a “Friend Requests” feature toview requests to/from the primary user to become friends on the socialnetwork, and a “Blocked” feature to view users that have been blockedfrom communicating or interacting with the primary user on the socialnetwork.

As shown in the illustrated implementation, the “In Game Sessions”feature 602 has been selected from the interface 600, thereby revealingon the right side of the interface a listing of the user's friends thatare currently engaged in active gameplay sessions. The listing of suchfriends can be in the form of a series of profile entries, such as entry604, and may further include related information, such as the user id ofa friend, a profile picture, the particular video game title that theyare playing, their duration of gameplay, their current level, etc.Furthermore, a “Join Session” feature 606 is provided, wherein selectionof the feature 606 enables the primary user to request to spectate orjoin the gameplay of the video game session. Thus, as shown in theillustrated implementation, the current primary user can request to jointhe session of the user “Johnny123” as a spectator only, or as aparticipant as well. It will be appreciated that in either case, thestreaming of the gameplay video occurs via P2P sharing as describedabove. And if the current user is permitted to join as a participant,then the current user's input is transmitted to the user deviceassociated with the user “Johnny123,” e.g. via a socket at the userdevice.

FIG. 6B illustrates an interface 610 for providing access to spectateand/or participate in the gameplay of a session of a user in a cloudgaming system, in accordance with implementations of the disclosure. Inthe illustrated implementation, the interface 610 is configured toprovide access to view live in-progress gaming sessions. For example,various icons 612, 614, and 616 indicate video game sessions that arecurrently live and available for spectating. In some implementations byselecting an icon, the user of the system is then provided with a livevideo feed of the gaming session. It will be appreciated that the livevideo feed can be provided using P2P sharing as described above.

Furthermore, in some implementations a user accessing a live video feedof a given game session may also request to join the gameplay as aparticipant. Upon approval of the request, which may be automatic insome instances or subject to the session owner's explicit approval, thenthe input from the user that is accessing the live video feed issupplied back to the session owner's device, as described previously,and applied to the video game session executed by the game machine.

In some implementations, a session owner may configure settings todetermine whether another user is permitted to join as a participant (asopposed to as a spectator only) in their session gameplay. In someimplementations the option to join as a participant can be configured tobe provided only to friends of the session owner on a social network,such as a social network associated with the cloud gaming system. Insome implementations, game-related settings can be applied, such as onlyallowing players with a minimum experience level to join as aparticipant.

In some implementations, a group chat session is provided duringcrowd-sourced gaming, so that users may communicate with each otherthrough voice/text chat.

FIG. 7 illustrates an embodiment of an Information Service Providerarchitecture. Information Service Providers (ISP) 770 delivers amultitude of information services to users 782 geographically dispersedand connected via network 786. An ISP can deliver just one type ofservice, such as stock price updates, or a variety of services such asbroadcast media, news, sports, gaming, etc. Additionally, the servicesoffered by each ISP are dynamic, that is, services can be added or takenaway at any point in time. Thus, the ISP providing a particular type ofservice to a particular individual can change over time. For example, auser may be served by an ISP in near proximity to the user while theuser is in her home town, and the user may be served by a different ISPwhen the user travels to a different city. The home-town ISP willtransfer the required information and data to the new ISP, such that theuser information “follows” the user to the new city making the datacloser to the user and easier to access. In another embodiment, amaster-server relationship may be established between a master ISP,which manages the information for the user, and a server ISP thatinterfaces directly with the user under control from the master ISP. Inanother embodiment, the data is transferred from one ISP to another ISPas the client moves around the world to make the ISP in better positionto service the user be the one that delivers these services.

ISP 770 includes Application Service Provider (ASP) 772, which providescomputer-based services to customers over a network. Software offeredusing an ASP model is also sometimes called on-demand software orsoftware as a service (SaaS). A simple form of providing access to aparticular application program (such as customer relationshipmanagement) is by using a standard protocol such as HTTP. Theapplication software resides on the vendor's system and is accessed byusers through a web browser using HTML, by special purpose clientsoftware provided by the vendor, or other remote interface such as athin client.

Services delivered over a wide geographical area often use cloudcomputing. Cloud computing is a style of computing in which dynamicallyscalable and often virtualized resources are provided as a service overthe Internet. Users do not need to be an expert in the technologyinfrastructure in the “cloud” that supports them. Cloud computing can bedivided into different services, such as Infrastructure as a Service(IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS).Cloud computing services often provide common business applicationsonline that are accessed from a web browser, while the software and dataare stored on the servers. The term cloud is used as a metaphor for theInternet (e.g., using servers, storage and logic), based on how theInternet is depicted in computer network diagrams and is an abstractionfor the complex infrastructure it conceals.

Further, ISP 770 includes a Game Processing Server (GPS) 774 which isused by game clients to play single and multiplayer video games. Mostvideo games played over the Internet operate via a connection to a gameserver. Typically, games use a dedicated server application thatcollects data from players and distributes it to other players. This ismore efficient and effective than a peer-to-peer arrangement, but itrequires a separate server to host the server application. In anotherembodiment, the GPS establishes communication between the players andtheir respective game-playing devices exchange information withoutrelying on the centralized GPS.

Dedicated GPSs are servers which run independently of the client. Suchservers are usually run on dedicated hardware located in data centers,providing more bandwidth and dedicated processing power. Dedicatedservers are the preferred method of hosting game servers for mostPC-based multiplayer games. Massively multiplayer online games run ondedicated servers usually hosted by the software company that owns thegame title, allowing them to control and update content.

Broadcast Processing Server (BPS) 776 distributes audio or video signalsto an audience. Broadcasting to a very narrow range of audience issometimes called narrowcasting. The final leg of broadcast distributionis how the signal gets to the listener or viewer, and it may come overthe air as with a radio station or TV station to an antenna andreceiver, or may come through cable TV or cable radio (or “wirelesscable”) via the station or directly from a network. The Internet mayalso bring either radio or TV to the recipient, especially withmulticasting allowing the signal and bandwidth to be shared.Historically, broadcasts have been delimited by a geographic region,such as national broadcasts or regional broadcast. However, with theproliferation of fast internet, broadcasts are not defined bygeographies as the content can reach almost any country in the world.

Storage Service Provider (SSP) 778 provides computer storage space andrelated management services. SSPs also offer periodic backup andarchiving. By offering storage as a service, users can order morestorage as required. Another major advantage is that SSPs include backupservices and users will not lose all their data if their computers' harddrives fail. Further, a plurality of SSPs can have total or partialcopies of the user data, allowing users to access data in an efficientway independently of where the user is located or the device being usedto access the data. For example, a user can access personal files in thehome computer, as well as in a mobile phone while the user is on themove.

Communications Provider 780 provides connectivity to the users. One kindof Communications Provider is an Internet Service Provider (ISP) whichoffers access to the Internet. The ISP connects its customers using adata transmission technology appropriate for delivering InternetProtocol datagrams, such as dial-up, DSL, cable modem, fiber, wirelessor dedicated high-speed interconnects. The Communications Provider canalso provide messaging services, such as e-mail, instant messaging, andSMS texting. Another type of Communications Provider is the NetworkService provider (NSP) which sells bandwidth or network access byproviding direct backbone access to the Internet. Network serviceproviders may consist of telecommunications companies, data carriers,wireless communications providers, Internet service providers, cabletelevision operators offering high-speed Internet access, etc.

Data Exchange 788 interconnects the several modules inside ISP 770 andconnects these modules to users 782 via network 786. Data Exchange 788can cover a small area where all the modules of ISP 770 are in closeproximity, or can cover a large geographic area when the differentmodules are geographically dispersed. For example, Data Exchange 788 caninclude a fast Gigabit Ethernet (or faster) within a cabinet of a datacenter, or an intercontinental virtual area network (VLAN).

Users 782 access the remote services with client device 784, whichincludes at least a CPU, a memory, a display and I/O. The client devicecan be a PC, a mobile phone, a netbook, tablet, gaming system, a PDA,etc. In one embodiment, ISP 770 recognizes the type of device used bythe client and adjusts the communication method employed. In othercases, client devices use a standard communications method, such ashtml, to access ISP 770.

Embodiments of the present disclosure may be practiced with variouscomputer system configurations including hand-held devices,microprocessor systems, microprocessor-based or programmable consumerelectronics, minicomputers, mainframe computers and the like. Thedisclosure can also be practiced in distributed computing environmentswhere tasks are performed by remote processing devices that are linkedthrough a wire-based or wireless network.

With the above embodiments in mind, it should be understood that thedisclosure can employ various computer-implemented operations involvingdata stored in computer systems. These operations are those requiringphysical manipulation of physical quantities. Any of the operationsdescribed herein that form part of the disclosure are useful machineoperations. The disclosure also relates to a device or an apparatus forperforming these operations. The apparatus can be specially constructedfor the required purpose, or the apparatus can be a general-purposecomputer selectively activated or configured by a computer programstored in the computer. In particular, various general-purpose machinescan be used with computer programs written in accordance with theteachings herein, or it may be more convenient to construct a morespecialized apparatus to perform the required operations.

The disclosure can also be embodied as computer readable code on acomputer readable medium. Alternately, the computer readable code may bedownloaded from a server using the data exchange interconnects describedabove. The computer readable medium is any data storage device that canstore data, which can be thereafter be read by a computer system.Examples of the computer readable medium include hard drives, networkattached storage (NAS), read-only memory, random-access memory, CD-ROMs,CD-Rs, CD-RWs, magnetic tapes and other optical and non-optical datastorage devices. The computer readable medium can include computerreadable tangible medium distributed over a network-coupled computersystem so that the computer readable code is stored and executed in adistributed fashion.

Although the method operations were described in a specific order, itshould be understood that other housekeeping operations may be performedin between operations, or operations may be adjusted so that they occurat slightly different times, or may be distributed in a system whichallows the occurrence of the processing operations at various intervalsassociated with the processing, as long as the processing of the overlayoperations are performed in the desired way.

Although the foregoing disclosure has been described in some detail forpurposes of clarity of understanding, it will be apparent that certainchanges and modifications can be practiced within the scope of theappended claims. Accordingly, the present embodiments are to beconsidered as illustrative and not restrictive, and the disclosure isnot to be limited to the details given herein, but may be modifiedwithin the scope and equivalents of the described embodiments.

FIG. 8 schematically illustrates the overall system architecture of agaming console, such as Sony® Playstation 3® entertainment device, thatmay be compatible with controllers for implementing an avatar controlsystem in accordance with one embodiment of the present disclosure. Asystem unit 800 is provided, with various peripheral devices connectableto the system unit 800. The system unit 800 can in some implementationsbe a computing server. The system unit 800 comprises: a Cell processor828; a Rambus® dynamic random access memory (XDRAM) unit 826; a RealitySynthesizer graphics unit 830 with a dedicated video random accessmemory (VRAM) unit 832; and an I/O bridge 834. The system unit 800 alsocomprises a Blu Ray® Disk BD-ROM® optical disk reader 840 for readingfrom a disk 840 a and a removable slot-in hard disk drive (HDD) 836,accessible through the I/O bridge 834. Optionally the system unit 800also comprises a memory card reader 838 for reading compact flash memorycards, Memory Stick® memory cards and the like, which is similarlyaccessible through the I/O bridge 834.

The I/O bridge 834 also connects to six Universal Serial Bus (USB) 2.0ports 824; a gigabit Ethernet port 822; an IEEE 802.11b/g wirelessnetwork (Wi-Fi) port 820; and a Bluetooth® wireless link port 818capable of supporting of up to seven Bluetooth connections.

In operation the I/O bridge 834 handles all wireless, USB and Ethernetdata, including data from one or more game controllers 802. For examplewhen a user is playing a game, the I/O bridge 834 receives data from thegame controller 802 via a Bluetooth link and directs it to the Cellprocessor 828, which updates the current state of the game accordingly.

The wireless, USB and Ethernet ports also provide connectivity for otherperipheral devices in addition to game controllers 802, such as: aremote control 804; a keyboard 806; a mouse 808; a portableentertainment device 810 such as a Sony Playstation Portable®entertainment device; a video camera such as an EyeToy® video camera812; and a microphone headset 814. Such peripheral devices may thereforein principle be connected to the system unit 800 wirelessly; for examplethe portable entertainment device 810 may communicate via a Wi-Fi ad-hocconnection, whilst the microphone headset 814 may communicate via aBluetooth link.

The provision of these interfaces means that the Playstation 3 device isalso potentially compatible with other peripheral devices such asdigital video recorders (DVRs), set-top boxes, digital cameras, portablemedia players, Voice over IP telephones, mobile telephones, printers andscanners.

In addition, a legacy memory card reader 816 may be connected to thesystem unit via a USB port 824, enabling the reading of memory cards 848of the kind used by the Playstation® or Playstation 2® devices.

In the present embodiment, the game controller 802 is operable tocommunicate wirelessly with the system unit 800 via the Bluetooth link.However, the game controller 802 can instead be connected to a USB port,thereby also providing power by which to charge the battery of the gamecontroller 802. In addition to one or more analog joysticks andconventional control buttons, the game controller is sensitive to motionin six degrees of freedom, corresponding to translation and rotation ineach axis. Consequently gestures and movements by the user of the gamecontroller may be translated as inputs to a game in addition to orinstead of conventional button or joystick commands. Optionally, otherwirelessly enabled peripheral devices such as the Playstation™ Portabledevice may be used as a controller. In the case of the Playstation™Portable device, additional game or control information (for example,control instructions or number of lives) may be provided on the screenof the device. Other alternative or supplementary control devices mayalso be used, such as a dance mat (not shown), a light gun (not shown),a steering wheel and pedals (not shown) or bespoke controllers, such asa single or several large buttons for a rapid-response quiz game (alsonot shown).

The remote control 804 is also operable to communicate wirelessly withthe system unit 800 via a Bluetooth link. The remote control 804comprises controls suitable for the operation of the Blu Ray™ DiskBD-ROM reader 840 and for the navigation of disk content.

The Blu Ray™ Disk BD-ROM reader 840 is operable to read CD-ROMscompatible with the Playstation and PlayStation 2 devices, in additionto conventional pre-recorded and recordable CDs, and so-called SuperAudio CDs. The reader 840 is also operable to read DVD-ROMs compatiblewith the Playstation 2 and PlayStation 3 devices, in addition toconventional pre-recorded and recordable DVDs. The reader 840 is furtheroperable to read BD-ROMs compatible with the Playstation 3 device, aswell as conventional pre-recorded and recordable Blu-Ray Disks.

The system unit 800 is operable to supply audio and video, eithergenerated or decoded by the Playstation 3 device via the RealitySynthesizer graphics unit 830, through audio and video connectors to adisplay and sound output device 842 such as a monitor or television sethaving a display 844 and one or more loudspeakers 846. The audioconnectors 850 may include conventional analogue and digital outputswhilst the video connectors 852 may variously include component video,S-video, composite video and one or more High Definition MultimediaInterface (HDMI) outputs. Consequently, video output may be in formatssuch as PAL or NTSC, or in 720p, 1080i or 1080p high definition.

Audio processing (generation, decoding and so on) is performed by theCell processor 828. The Playstation 3 device's operating system supportsDolby® 5.1 surround sound, Dolby® Theatre Surround (DTS), and thedecoding of 7.1 surround sound from Blu-Ray® disks.

In the present embodiment, the video camera 812 comprises a singlecharge coupled device (CCD), an LED indicator, and hardware-basedreal-time data compression and encoding apparatus so that compressedvideo data may be transmitted in an appropriate format such as anintra-image based MPEG (motion picture expert group) standard fordecoding by the system unit 800. The camera LED indicator is arranged toilluminate in response to appropriate control data from the system unit800, for example to signify adverse lighting conditions. Embodiments ofthe video camera 812 may variously connect to the system unit 800 via aUSB, Bluetooth or Wi-Fi communication port. Embodiments of the videocamera may include one or more associated microphones and also becapable of transmitting audio data. In embodiments of the video camera,the CCD may have a resolution suitable for high-definition videocapture. In use, images captured by the video camera may for example beincorporated within a game or interpreted as game control inputs.

In general, in order for successful data communication to occur with aperipheral device such as a video camera or remote control via one ofthe communication ports of the system unit 800, an appropriate piece ofsoftware such as a device driver should be provided. Device drivertechnology is well-known and will not be described in detail here,except to say that the skilled man will be aware that a device driver orsimilar software interface may be required in the present embodimentdescribed.

FIG. 9 is a block diagram of a Game System 900, in accordance withimplementations of the disclosure. Game System 900 is configured toprovide a video stream to one or more Clients 910 via a Network 915.Game System 900 typically includes a Video Server System 920 and anoptional game server 925. Video Server System 920 is configured toprovide the video stream to the one or more Clients 910 with a minimalquality of service. For example, Video Server System 920 may receive agame command that changes the state of or a point of view within a videogame, and provide Clients 910 with an updated video stream reflectingthis change in state with minimal lag time. The Video Server System 920may be configured to provide the video stream in a wide variety ofalternative video formats, including formats yet to be defined. Further,the video stream may include video frames configured for presentation toa user at a wide variety of frame rates. Typical frame rates are 30frames per second, 60 frames per second, and 920 frames per second.Although higher or lower frame rates are included in alternativeembodiments of the disclosure.

Clients 910, referred to herein individually as 910A, 910B, etc., mayinclude head mounted displays, terminals, personal computers, gameconsoles, tablet computers, telephones, set top boxes, kiosks, wirelessdevices, digital pads, stand-alone devices, handheld game playingdevices, and/or the like. Typically, Clients 910 are configured toreceive encoded video streams, decode the video streams, and present theresulting video to a user, e.g., a player of a game. The processes ofreceiving encoded video streams and/or decoding the video streamstypically includes storing individual video frames in a receive bufferof the client. The video streams may be presented to the user on adisplay integral to Client 910 or on a separate device such as a monitoror television. Clients 910 are optionally configured to support morethan one game player. For example, a game console may be configured tosupport two, three, four or more simultaneous players. Each of theseplayers may receive a separate video stream, or a single video streammay include regions of a frame generated specifically for each player,e.g., generated based on each player's point of view. Clients 910 areoptionally geographically dispersed. The number of clients included inGame System 900 may vary widely from one or two to thousands, tens ofthousands, or more. As used herein, the term “game player” is used torefer to a person that plays a game and the term “game playing device”is used to refer to a device used to play a game. In some embodiments,the game playing device may refer to a plurality of computing devicesthat cooperate to deliver a game experience to the user. For example, agame console and an HMD may cooperate with the video server system 920to deliver a game viewed through the HMD. In one embodiment, the gameconsole receives the video stream from the video server system 920, andthe game console forwards the video stream, or updates to the videostream, to the HMD for rendering.

Clients 910 are configured to receive video streams via Network 915.Network 915 may be any type of communication network including, atelephone network, the Internet, wireless networks, powerline networks,local area networks, wide area networks, private networks, and/or thelike. In typical embodiments, the video streams are communicated viastandard protocols, such as TCP/IP or UDP/IP. Alternatively, the videostreams are communicated via proprietary standards.

A typical example of Clients 910 is a personal computer comprising aprocessor, non-volatile memory, a display, decoding logic, networkcommunication capabilities, and input devices. The decoding logic mayinclude hardware, firmware, and/or software stored on a computerreadable medium. Systems for decoding (and encoding) video streams arewell known in the art and vary depending on the particular encodingscheme used.

Clients 910 may, but are not required to, further include systemsconfigured for modifying received video. For example, a client may beconfigured to perform further rendering, to overlay one video image onanother video image, to crop a video image, and/or the like. Forexample, Clients 910 may be configured to receive various types of videoframes, such as I-frames, P-frames and B-frames, and to process theseframes into images for display to a user. In some embodiments, a memberof Clients 910 is configured to perform further rendering, shading,conversion to 3-D, or like operations on the video stream. A member ofClients 910 is optionally configured to receive more than one audio orvideo stream. Input devices of Clients 910 may include, for example, aone-hand game controller, a two-hand game controller, a gesturerecognition system, a gaze recognition system, a voice recognitionsystem, a keyboard, a joystick, a pointing device, a force feedbackdevice, a motion and/or location sensing device, a mouse, a touchscreen, a neural interface, a camera, input devices yet to be developed,and/or the like.

The video stream (and optionally audio stream) received by Clients 910is generated and provided by Video Server System 920. As is describedfurther elsewhere herein, this video stream includes video frames (andthe audio stream includes audio frames). The video frames are configured(e.g., they include pixel information in an appropriate data structure)to contribute meaningfully to the images displayed to the user. As usedherein, the term “video frames” is used to refer to frames includingpredominantly information that is configured to contribute to, e.g. toeffect, the images shown to the user. Most of the teachings herein withregard to “video frames” can also be applied to “audio frames.”

Clients 910 are typically configured to receive inputs from a user.These inputs may include game commands configured to change the state ofthe video game or otherwise affect game play. The game commands can bereceived using input devices and/or may be automatically generated bycomputing instructions executing on Clients 910. The received gamecommands are communicated from Clients 910 via Network 915 to VideoServer System 920 and/or Game Server 925. For example, in someembodiments, the game commands are communicated to Game Server 925 viaVideo Server System 920. In some embodiments, separate copies of thegame commands are communicated from Clients 910 to Game Server 925 andVideo Server System 920. The communication of game commands isoptionally dependent on the identity of the command. Game commands areoptionally communicated from Client 910A through a different route orcommunication channel that that used to provide audio or video streamsto Client 910A.

Game Server 925 is optionally operated by a different entity than VideoServer System 920. For example, Game Server 925 may be operated by thepublisher of a multiplayer game. In this example, Video Server System920 is optionally viewed as a client by Game Server 925 and optionallyconfigured to appear from the point of view of Game Server 925 to be aprior art client executing a prior art game engine. Communicationbetween Video Server System 920 and Game Server 925 optionally occursvia Network 915. As such, Game Server 925 can be a prior art multiplayergame server that sends game state information to multiple clients, oneof which is game server system 920. Video Server System 920 may beconfigured to communicate with multiple instances of Game Server 925 atthe same time. For example, Video Server System 920 can be configured toprovide a plurality of different video games to different users. Each ofthese different video games may be supported by a different Game Server925 and/or published by different entities. In some embodiments, severalgeographically distributed instances of Video Server System 920 areconfigured to provide game video to a plurality of different users. Eachof these instances of Video Server System 920 may be in communicationwith the same instance of Game Server 925. Communication between VideoServer System 920 and one or more Game Server 925 optionally occurs viaa dedicated communication channel. For example, Video Server System 920may be connected to Game Server 925 via a high bandwidth channel that isdedicated to communication between these two systems.

Video Server System 920 comprises at least a Video Source 930, an I/ODevice 945, a Processor 950, and non-transitory Storage 955. VideoServer System 920 may include one computing device or be distributedamong a plurality of computing devices. These computing devices areoptionally connected via a communications system such as a local areanetwork.

Video Source 930 is configured to provide a video stream, e.g.,streaming video or a series of video frames that form a moving picture.In some embodiments, Video Source 930 includes a video game engine andrendering logic. The video game engine is configured to receive gamecommands from a player and to maintain a copy of the state of the videogame based on the received commands. This game state includes theposition of objects in a game environment, as well as typically a pointof view. The game state may also include properties, images, colorsand/or textures of objects. The game state is typically maintained basedon game rules, as well as game commands such as move, turn, attack, setfocus to, interact, use, and/or the like. Part of the game engine isoptionally disposed within Game Server 925. Game Server 925 may maintaina copy of the state of the game based on game commands received frommultiple players using geographically disperse clients. In these cases,the game state is provided by Game Server 925 to Video Source 930,wherein a copy of the game state is stored and rendering is performed.Game Server 925 may receive game commands directly from Clients 910 viaNetwork 915, and/or may receive game commands via Video Server System920.

Video Source 930 typically includes rendering logic, e.g., hardware,firmware, and/or software stored on a computer readable medium such asStorage 955. This rendering logic is configured to create video framesof the video stream based on the game state. All or part of therendering logic is optionally disposed within a graphics processing unit(GPU). Rendering logic typically includes processing stages configuredfor determining the three-dimensional spatial relationships betweenobjects and/or for applying appropriate textures, etc., based on thegame state and viewpoint. The rendering logic produces raw video that isthen usually encoded prior to communication to Clients 910. For example,the raw video may be encoded according to an Adobe Flash® standard,.wav, H.265, H.264, H.263, On2, VP6, VC-1, WMA, Huffyuv, Lagarith,MPG-x. Xvid. FFmpeg, x264, VP6-8, realvideo, mp3, or the like. Theencoding process produces a video stream that is optionally packaged fordelivery to a decoder on a remote device. The video stream ischaracterized by a frame size and a frame rate. Typical frame sizesinclude 800×600, 1280×720 (e.g., 720p), 1024×768, although any otherframe sizes may be used. The frame rate is the number of video framesper second. A video stream may include different types of video frames.For example, the H.264 standard includes a “P” frame and a “I” frame.I-frames include information to refresh all macro blocks/pixels on adisplay device, while P-frames include information to refresh a subsetthereof. P-frames are typically smaller in data size than are I-frames.As used herein the term “frame size” is meant to refer to a number ofpixels within a frame. The term “frame data size” is used to refer to anumber of bytes required to store the frame.

In alternative embodiments Video Source 930 includes a video recordingdevice such as a camera. This camera may be used to generate delayed orlive video that can be included in the video stream of a computer game.The resulting video stream, optionally includes both rendered images andimages recorded using a still or video camera. Video Source 930 may alsoinclude storage devices configured to store previously recorded video tobe included in a video stream. Video Source 930 may also include motionor positioning sensing devices configured to detect motion or positionof an object, e.g., person, and logic configured to determine a gamestate or produce video-based on the detected motion and/or position.

Video Source 930 is optionally configured to provide overlays configuredto be placed on other video. For example, these overlays may include acommand interface, log in instructions, messages to a game player,images of other game players, video feeds of other game players (e.g.,webcam video). In embodiments of Client 910A including a touch screeninterface or a gaze detection interface, the overlay may include avirtual keyboard, joystick, touch pad, and/or the like. In one exampleof an overlay a player's voice is overlaid on an audio stream. VideoSource 930 optionally further includes one or more audio sources.

In embodiments wherein Video Server System 920 is configured to maintainthe game state based on input from more than one player, each player mayhave a different point of view comprising a position and direction ofview. Video Source 930 is optionally configured to provide a separatevideo stream for each player based on their point of view. Further,Video Source 930 may be configured to provide a different frame size,frame data size, and/or encoding to each of Client 910. Video Source 930is optionally configured to provide 3-D video.

I/O Device 945 is configured for Video Server System 920 to send and/orreceive information such as video, commands, requests for information, agame state, gaze information, device motion, device location, usermotion, client identities, player identities, game commands, securityinformation, audio, and/or the like. I/O Device 945 typically includescommunication hardware such as a network card or modem. I/O Device 945is configured to communicate with Game Server 925, Network 915, and/orClients 910.

Processor 950 is configured to execute logic, e.g. software, includedwithin the various components of Video Server System 920 discussedherein. For example, Processor 950 may be programmed with softwareinstructions in order to perform the functions of Video Source 930, GameServer 925, and/or a Client Qualifier 960. Video Server System 920optionally includes more than one instance of Processor 950. Processor950 may also be programmed with software instructions in order toexecute commands received by Video Server System 920, or to coordinatethe operation of the various elements of Game System 900 discussedherein. Processor 950 may include one or more hardware device. Processor950 is an electronic processor.

Storage 955 includes non-transitory analog and/or digital storagedevices. For example, Storage 955 may include an analog storage deviceconfigured to store video frames. Storage 955 may include a computerreadable digital storage, e.g. a hard drive, an optical drive, or solidstate storage. Storage 915 is configured (e.g. by way of an appropriatedata structure or file system) to store video frames, artificial frames,a video stream including both video frames and artificial frames, audioframe, an audio stream, and/or the like. Storage 955 is optionallydistributed among a plurality of devices. In some embodiments, Storage955 is configured to store the software components of Video Source 930discussed elsewhere herein. These components may be stored in a formatready to be provisioned when needed.

Video Server System 920 optionally further comprises Client Qualifier960.

Client Qualifier 960 is configured for remotely determining thecapabilities of a client, such as Clients 910A or 910B. Thesecapabilities can include both the capabilities of Client 910A itself aswell as the capabilities of one or more communication channels betweenClient 910A and Video Server System 920. For example, Client Qualifier960 may be configured to test a communication channel through Network915.

Client Qualifier 960 can determine (e.g., discover) the capabilities ofClient 910A manually or automatically. Manual determination includescommunicating with a user of Client 910A and asking the user to providecapabilities. For example, in some embodiments, Client Qualifier 960 isconfigured to display images, text, and/or the like within a browser ofClient 910A. In one embodiment, Client 910A is an HMD that includes abrowser. In another embodiment, client 910A is a game console having abrowser, which may be displayed on the HMD. The displayed objectsrequest that the user enter information such as operating system,processor, video decoder type, type of network connection, displayresolution, etc. of Client 910A. The information entered by the user iscommunicated back to Client Qualifier 960.

Automatic determination may occur, for example, by execution of an agenton Client 910A and/or by sending test video to Client 910A. The agentmay comprise computing instructions, such as java script, embedded in aweb page or installed as an add-on. The agent is optionally provided byClient Qualifier 960. In various embodiments, the agent can find outprocessing power of Client 910A, decoding and display capabilities ofClient 910A, lag time reliability and bandwidth of communicationchannels between Client 910A and Video Server System 920, a display typeof Client 910A, firewalls present on Client 910A, hardware of Client910A, software executing on Client 910A, registry entries within Client910A, and/or the like.

Client Qualifier 960 includes hardware, firmware, and/or software storedon a computer readable medium. Client Qualifier 960 is optionallydisposed on a computing device separate from one or more other elementsof Video Server System 920. For example, in some embodiments, ClientQualifier 960 is configured to determine the characteristics ofcommunication channels between Clients 910 and more than one instance ofVideo Server System 920. In these embodiments the information discoveredby Client Qualifier can be used to determine which instance of VideoServer System 920 is best suited for delivery of streaming video to oneof Clients 910.

Embodiments of the present disclosure may be practiced with variouscomputer system configurations including hand-held devices,microprocessor systems, microprocessor-based or programmable consumerelectronics, minicomputers, mainframe computers and the like. Thedisclosure can also be practiced in distributed computing environmentswhere tasks are performed by remote processing devices that are linkedthrough a wire-based or wireless network.

With the above embodiments in mind, it should be understood that thedisclosure can employ various computer-implemented operations involvingdata stored in computer systems. These operations are those requiringphysical manipulation of physical quantities. Any of the operationsdescribed herein that form part of the disclosure are useful machineoperations. The disclosure also relates to a device or an apparatus forperforming these operations. The apparatus can be specially constructedfor the required purpose, or the apparatus can be a general-purposecomputer selectively activated or configured by a computer programstored in the computer. In particular, various general-purpose machinescan be used with computer programs written in accordance with theteachings herein, or it may be more convenient to construct a morespecialized apparatus to perform the required operations.

The disclosure can also be embodied as computer readable code on acomputer readable medium. The computer readable medium is any datastorage device that can store data, which can be thereafter be read by acomputer system. Examples of the computer readable medium include harddrives, network attached storage (NAS), read-only memory, random-accessmemory, CD-ROMs, CD-Rs, CD-RWs, magnetic tapes and other optical andnon-optical data storage devices. The computer readable medium caninclude computer readable tangible medium distributed over anetwork-coupled computer system so that the computer readable code isstored and executed in a distributed fashion.

Although the method operations were described in a specific order, itshould be understood that other housekeeping operations may be performedin between operations, or operations may be adjusted so that they occurat slightly different times, or may be distributed in a system whichallows the occurrence of the processing operations at various intervalsassociated with the processing, as long as the processing of the overlayoperations are performed in the desired way.

Although the foregoing disclosure has been described in some detail forpurposes of clarity of understanding, it will be apparent that certainchanges and modifications can be practiced within the scope of theappended claims. Accordingly, the present embodiments are to beconsidered as illustrative and not restrictive, and the disclosure isnot to be limited to the details given herein, but may be modifiedwithin the scope and equivalents of the present disclosure.

What is claimed is:
 1. A method, comprising: executing, by a cloudgaming machine, a session of a cloud video game, the session configuredto generate gameplay video; streaming the gameplay video from the cloudgaming machine over a network to a primary user device, the primary userdevice configured to render the gameplay video to a primary display;wherein the primary user device is configured to stream the gameplayvideo over a peer-to-peer network to one or more secondary user devices,each of said secondary user devices being configured to render thegameplay video, respectively, to one or more secondary displays; whereinthe primary user device is configured to process primary inputs, thatare generated from interactive gameplay associated with the primary userdevice, and secondary inputs, that are generated from interactivegameplay associated with the one or more secondary user devices, togenerate aggregated inputs; receiving, over the network by the cloudgaming machine, the aggregated inputs from the primary user device;wherein executing the session of the cloud video game includes applyingthe aggregated inputs to update a game state of the cloud video gamethat is processed to generate the gameplay video.
 2. The method of claim1, wherein the method enables substantially real-time interactivegameplay of the session of the cloud video game simultaneously throughthe primary user device and the one or more secondary user devices. 3.The method of claim 1, wherein the cloud gaming machine does notcommunicate with the one or more secondary user devices.
 4. The methodof claim 1, wherein the session of the cloud video game is defined as asingle player session of the cloud video game.
 5. The method of claim 1,wherein the primary user device is configured to instantiate a socketthrough which the secondary inputs are received from the one or moresecondary user device.
 6. The method of claim 1, wherein at least one ofthe secondary user devices is configured to execute a browserapplication that renders the gameplay video that is received over thepeer-to-peer network.
 7. The method of claim 1, wherein streaming thegameplay video over the peer-to-peer network to the one or moresecondary user devices includes accessing a WebRTC applicationprogramming interface (API) to enable instantiation of the peer-to-peernetwork.
 8. The method of claim 1, wherein processing the primary inputsand the secondary inputs to generate the aggregated inputs includescombining the primary inputs and the secondary inputs into a singleinput stream.
 9. The method of claim 1, wherein processing the primaryinputs and the secondary inputs to generate the aggregated inputsincludes determining popular inputs based on the primary inputs and thesecondary inputs.
 10. The method of claim 1, wherein processing theprimary inputs and the secondary inputs to generate the aggregatedinputs includes determining, for a given input type and a current timeinterval, a single input command based on ones of the primary inputs andthe secondary inputs that are of the given input type and which occurduring the current time interval.
 11. A non-transitory computer readablemedium having program instructions embodied thereon, the programinstructions configured, when executed by at least one server computer,to cause said at least one server computer to perform a method includingthe following method operations: executing, by a cloud gaming machine, asession of a cloud video game, the session configured to generategameplay video; streaming the gameplay video from the cloud gamingmachine over a network to a primary user device, the primary user deviceconfigured to render the gameplay video to a primary display; whereinthe primary user device is configured to stream the gameplay video overa peer-to-peer network to one or more secondary user devices, each ofsaid secondary user devices being configured to render the gameplayvideo, respectively, to one or more secondary displays; wherein theprimary user device is configured to process primary inputs, that aregenerated from interactive gameplay associated with the primary userdevice, and secondary inputs, that are generated from interactivegameplay associated with the one or more secondary user devices, togenerate aggregated inputs; receiving, over the network by the cloudgaming machine, the aggregated inputs from the primary user device;wherein executing the session of the cloud video game includes applyingthe aggregated inputs to update a game state of the cloud video gamethat is processed to generate the gameplay video.
 12. The non-transitorycomputer readable medium of claim 11, wherein the method enablessubstantially real-time interactive gameplay of the session of the cloudvideo game simultaneously through the primary user device and the one ormore secondary user devices.
 13. The non-transitory computer readablemedium of claim 11, wherein the cloud gaming machine does notcommunicate with the one or more secondary user devices.
 14. Thenon-transitory computer readable medium of claim 11, wherein the sessionof the cloud video game is defined as a single player session of thecloud video game.
 15. The non-transitory computer readable medium ofclaim 11, wherein the primary user device is configured to instantiate asocket through which the secondary inputs are received from the one ormore secondary user device.
 16. The non-transitory computer readablemedium of claim 11, wherein at least one of the secondary user devicesis configured to execute a browser application that renders the gameplayvideo that is received over the peer-to-peer network.
 17. Thenon-transitory computer readable medium of claim 11, wherein streamingthe gameplay video over the peer-to-peer network to the one or moresecondary user devices includes accessing a WebRTC applicationprogramming interface (API) to enable instantiation of the peer-to-peernetwork.
 18. The non-transitory computer readable medium of claim 11,wherein processing the primary inputs and the secondary inputs togenerate the aggregated inputs includes combining the primary inputs andthe secondary inputs into a single input stream.
 19. The non-transitorycomputer readable medium of claim 11, wherein processing the primaryinputs and the secondary inputs to generate the aggregated inputsincludes determining popular inputs based on the primary inputs and thesecondary inputs.
 20. The non-transitory computer readable medium ofclaim 11, wherein processing the primary inputs and the secondary inputsto generate the aggregated inputs includes determining, for a giveninput type and a current time interval, a single input command based onones of the primary inputs and the secondary inputs that are of thegiven input type and which occur during the current time interval.
 21. Asystem, comprising: a cloud gaming machine configured to execute asession of a cloud video game, the session configured to generategameplay video; the cloud gaming machine configured to stream thegameplay video from the cloud gaming machine over a network to a primaryuser device, the primary user device configured to render the gameplayvideo to a primary display; wherein the primary user device isconfigured to stream the gameplay video over a peer-to-peer network toone or more secondary user devices, each of said secondary user devicesbeing configured to render the gameplay video, respectively, to one ormore secondary displays; wherein the primary user device is configuredto process primary inputs, that are generated from interactive gameplayassociated with the primary user device, and secondary inputs, that aregenerated from interactive gameplay associated with the one or moresecondary user devices, to generate aggregated inputs; receiving, overthe network by the cloud gaming machine, the aggregated inputs from theprimary user device; wherein executing the session of the cloud videogame includes applying the aggregated inputs to update a game state ofthe cloud video game that is processed to generate the gameplay video.22. The system of claim 21, wherein the method enables substantiallyreal-time interactive gameplay of the session of the cloud video gamesimultaneously through the primary user device and the one or moresecondary user devices.
 23. The system of claim 21, wherein the cloudgaming machine does not communicate with the one or more secondary userdevices.
 24. The system of claim 21, wherein the session of the cloudvideo game is defined as a single player session of the cloud videogame.